<%@ page language="java" 
         contentType="text/html; charset=windows-1256"
         pageEncoding="windows-1256"
         import="LoginUtil.UserBean"
   %>
   
    <%  UserBean currentUser = (UserBean) (session.getAttribute("currentSessionUser")); 
 	if(currentUser == null || currentUser.getType().compareToIgnoreCase("doctor") != 0 || currentUser.getType().compareToIgnoreCase("admin") == 0)
 	{
 		response.sendRedirect("login.jsp");
 	}
 %>
 
   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
   "http://www.w3.org/TR/html4/loose.dtd">

   <html>

      <head>
         <meta http-equiv="Content-Type" 
            content="text/html; charset=windows-1256">
         <title>  Welcome - Adventure Time MedSys   </title>
         <link rel="stylesheet" type="text/css" href="style.css" />
      </head>
	
      <body>

         <center>
            <div class="h0"> Welcome Dr. <%= currentUser.getFirstName() + " " + currentUser.getLastName() %> </div>
           Not <%= currentUser.getFirstName()%>? <a href="login.jsp">Log in.</a><br><br></br>
           
           <a href ="patientLookup.jsp">Patient Lookup</a><br>
           Edit, delete, and add treatments to patients in the system
           <br><br>
           
           <a href ="newPatientForm.jsp">Create New Patient</a><br>
           Add a new patient to the system
           <br><br>
           
           <a href ="dailyAppts.jsp">View Daily Appointments</a><br>
           View appointments scheduled for today
           <br><br>
           
           <a href ="incomeStmt.jsp">View Monthly Income</a><br>
           View total income for this month
           <br><br>
           
           
           
         </center>

      </body>
	
   </html>